]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
environment: Drop DesktopAppIcon missing methods workaround
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Sun, 31 Aug 2025 00:58:29 +0000 (02:58 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 15 Sep 2025 01:20:18 +0000 (03:20 +0200)
This will be fixed in GLib 2.85.5 so there's no need to ship a
workaround for 49

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3860>

js/ui/environment.js

index a008a372c6c80926d0869a4dfceed80b8d8c8471..77f09bf10cbe7955a1c73638bfda007d8e4e410c 100644 (file)
@@ -8,7 +8,6 @@ import Cairo from 'cairo';
 import Clutter from 'gi://Clutter';
 import Gdk from 'gi://Gdk';
 import Gio from 'gi://Gio';
-import GioUnix from 'gi://GioUnix';
 import GLib from 'gi://GLib';
 import GObject from 'gi://GObject';
 import Meta from 'gi://Meta';
@@ -341,29 +340,6 @@ Object.prototype.toString = function () {
     }
 };
 
-// Work around https://gitlab.gnome.org/GNOME/glib/-/issues/3744
-if (!GioUnix.DesktopAppInfo.prototype.has_key) {
-    GioUnix.DesktopAppInfo.prototype.has_key = function (key) {
-        return GioUnix.DesktopAppInfo.has_key(this, key);
-    };
-
-    GioUnix.DesktopAppInfo.prototype.get_boolean = function (key) {
-        return GioUnix.DesktopAppInfo.get_boolean(this, key);
-    };
-
-    GioUnix.DesktopAppInfo.prototype.get_categories = function () {
-        return GioUnix.DesktopAppInfo.get_categories(this);
-    };
-
-    GioUnix.DesktopAppInfo.prototype.list_actions = function () {
-        return GioUnix.DesktopAppInfo.list_actions(this);
-    };
-
-    GioUnix.DesktopAppInfo.prototype.get_action_name = function (name) {
-        return GioUnix.DesktopAppInfo.get_action_name(this, name);
-    };
-}
-
 const slowdownEnv = GLib.getenv('GNOME_SHELL_SLOWDOWN_FACTOR');
 if (slowdownEnv) {
     let factor = parseFloat(slowdownEnv);